<?php
	include ("../php/seguridad/moduloSeguridad.php");
	include ("../php/seguridad/funcionesSeguridad.php");
?>
<!DOCTYPE html>
<!--

TABLE OF CONTENTS.

Use search to find needed section.

=====================================================

|  1. $BODY                 |  Body                 |
|  2. $MAIN_NAVIGATION      |  Main navigation      |
|  3. $NAVBAR_ICON_BUTTONS  |  Navbar Icon Buttons  |
|  4. $MAIN_MENU            |  Main menu            |
|  5. $CONTENT              |  Content              |

=====================================================

-->


<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if IE 9]>         <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Informe de productos</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

	<meta name="author" content="Abel Chocano Gómez, Carlos del Prado Mota">

	<!-- Favicon -->
	<link rel="shortcut icon" type="image/x-icon" href="assets/images/miImg/favicon.ico" />

	<!-- Open Sans font from Google CDN -->
	<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&subset=latin" rel="stylesheet" type="text/css">

	<!-- Pixel Admin's stylesheets -->
	<link href="assets/stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/pixel-admin.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/widgets.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/pages.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/rtl.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/themes.min.css" rel="stylesheet" type="text/css">

	<!--[if lt IE 9]>
		<script src="assets/javascripts/ie.min.js"></script>
	<![endif]-->

	<!-- Get jQuery from Google CDN -->
	<!--[if !IE]> -->
		<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js">'+"<"+"/script>"); </script>
	<!-- <![endif]-->
	<!--[if lte IE 9]>
		<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">'+"<"+"/script>"); </script>
	<![endif]-->

	<!-- Pixel Admin's javascripts -->
	<script src="assets/javascripts/bootstrap.min.js"></script>
	<script src="assets/javascripts/pixel-admin.min.js"></script>

	<!-- Include one of jTable styles. -->
	<link href="../javascripts/libs/jtable.2.4.0/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css" />
	 
	<!-- Include jTable script file. -->
	<script src="../javascripts/libs/jquery-ui-1.10.4/jquery-ui.js" type="text/javascript"></script>
	<script src="../javascripts/libs/jtable.2.4.0/jquery.jtable.js" type="text/javascript"></script>

	<!-- Hicharts -->
	<script src="../javascripts/libs/highcharts/4.0.1/highcharts.js"></script>
	<script src="../javascripts/libs/highcharts/4.0.1/modules/data.js"></script>
	<script src="../javascripts/libs/highcharts/4.0.1/modules/exporting.js"></script>
	<script src="../javascripts/libs/highcharts/4.0.1/modules/no-data-to-display.js"></script>

	<!-- Css y js Propios -->
	<link href="assets/stylesheets/miCSS/miCss_informes_ventas.css" rel="stylesheet" type="text/css">
	<script src="assets/javascripts/miJS/miJS_signout.js" type="text/javascript" ></script>
	<script src="assets/javascripts/miJS/informes/miJS_informe_productos.js" type="text/javascript" ></script>

</head>


<!-- 1. $BODY ======================================================================================
	
	Body

	Classes:
	* 'theme-{THEME NAME}'
	* 'right-to-left'      - Sets text direction to right-to-left
	* 'main-menu-right'    - Places the main menu on the right side
	* 'no-main-menu'       - Hides the main menu
	* 'main-navbar-fixed'  - Fixes the main navigation
	* 'main-menu-fixed'    - Fixes the main menu
	* 'main-menu-animated' - Animate main menu
-->
<body class="theme-default main-menu-animated">
<script>var init = [];</script>
<!-- Demo script --> <script src="assets/demo/demo.js"></script> <!-- / Demo script -->
<div id="main-wrapper">


<!-- 2. $MAIN_NAVIGATION ===========================================================================

	Main navigation
-->
	<div id="main-navbar" class="navbar navbar-inverse " role="navigation">
		<!-- Main menu toggle -->
		<button type="button" id="main-menu-toggle"><i class="navbar-icon fa fa-bars icon"></i><span class="hide-menu-text">OCULTAR MENÚ</span></button>
		
		<div class="navbar-inner">
			<!-- Main navbar header -->
			<div class="navbar-header">

				<!-- Logo -->
				<a href="panel-control.html" class="navbar-brand">
					<div class="panel_logo"><img alt="Cloud Cash Register" src="assets/images/miImg/logo_c2r.png";></div>
					Cloud Cash Register
				</a>

				<!-- Main navbar toggle -->
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-navbar-collapse"><i class="navbar-icon fa fa-bars"></i></button>

			</div> <!-- / .navbar-header -->

			<div id="main-navbar-collapse" class="collapse navbar-collapse main-navbar-collapse">
				<div>

					<div class="right clearfix">
						<ul class="nav navbar-nav pull-right right-navbar-nav">

<!-- 3. $NAVBAR_ICON_BUTTONS =======================================================================

							Navbar Icon Buttons

							NOTE: .nav-icon-btn triggers a dropdown menu on desktop screens only. On small screens .nav-icon-btn acts like a hyperlink.

							Classes:
							* 'nav-icon-btn-info'
							* 'nav-icon-btn-success'
							* 'nav-icon-btn-warning'
							* 'nav-icon-btn-danger' 
-->

							<li class="dropdown">
								<a href="#" class="dropdown-toggle user-menu" data-toggle="dropdown">
									<img src="assets/demo/avatars/1.jpg" alt="">
									<span><?php echo $_SESSION['nombreUsuario']?></span>
								</a>
								<ul class="dropdown-menu">
									<li><a href="#"><i class="dropdown-icon fa fa-cog"></i>&nbsp;&nbsp;Configuración</a></li>
									<li class="divider"></li>
									<li><a href="#" id="a_desconectar_sesion"><i class="dropdown-icon fa fa-power-off"></i>&nbsp;&nbsp;Desconectar</a></li>
									<input type="hidden" name="signout_desconexion_token_CSRF" id="signout_desconexion_token_CSRF" value="<?php echo generadorTokenAntiCSRF('form_desconexion')?>">
								</ul>
							</li>
						</ul> <!-- / .navbar-nav -->
					</div> <!-- / .right -->
				</div>
			</div> <!-- / #main-navbar-collapse -->
		</div> <!-- / .navbar-inner -->
	</div> <!-- / #main-navbar -->
<!-- /2. $END_MAIN_NAVIGATION -->

	<div id="main-menu" role="navigation">
		<div id="main-menu-inner">
			<div class="menu-content top" id="menu-content-demo">
				<!-- Menu custom content demo
					 CSS:        styles/pixel-admin-less/demo.less or styles/pixel-admin-scss/_demo.scss
					 Javascript: html/assets/demo/demo.js
				 -->
				<div>
					<div class="text-bg"><span class="text-slim">Bienvenido,</span><br><span class="text-semibold"><?php echo $_SESSION['nombreUsuario']?></span></div>

					<img src="assets/demo/avatars/1.jpg" alt="" class="">
					<div class="btn-group">
						<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-cog"></i></a>
						<a href="#" class="btn btn-xs btn-danger btn-outline dark" id="a_icono_desconectar_sesion"><i class="fa fa-power-off"></i></a>
					</div>
					<a href="#" class="close">&times;</a>
				</div>
			</div>
			<ul class="navigation">
				<li>
					<a href="panel-control.html"><i class="menu-icon fa fa-desktop"></i><span class="mm-text">Resumen del mes</span></a>
				</li>
				<li>
					<a href="ver-productos.html"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">Productos</a>
				</li>
				<li>
					<a href="ver-empleados.html"><i class="menu-icon fa fa-users"></i><span class="mm-text">Empleados</a>
				</li>
				<li class="mm-dropdown">
					<a href="#"><i class="menu-icon fa fa-bar-chart-o"></i><span class="mm-text">Informes</a>
					<ul>
						<li>
							<a tabindex="-1" href="informes-ventas.html"><i class="menu-icon fa fa-shopping-cart"></i><span class="mm-text">Ventas</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-devoluciones.html"><i class="menu-icon fa fa-trash-o"></i><span class="mm-text">Devoluciones</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-productos.html"><i class="menu-icon fa fa-inbox"></i><span class="mm-text">Productos</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-empleados.html"><i class="menu-icon fa fa-user"></i><span class="mm-text">Empleados</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-historico.html"><i class="menu-icon fa fa-list-alt"></i><span class="mm-text">Histórico</span></a>
						</li>
					</ul>
				</li>
				<li class="active">
					<a href="ticket.html"><i class="menu-icon fa fa-list-alt"></i><span class="mm-text">Ticket</span></a>
				</li>
				<li>
					<a href="#"><i class="menu-icon fa fa-cog"></i><span class="mm-text">Configuracion</span></a>
				</li>
			</ul> <!-- / .navigation -->
			<div class="menu-content">
				<a href="#" class="btn btn-primary btn-block btn-outline dark" id="boton_panelizq_desconectar_sesion"><i class="fa fa-power-off"></i> Desconectar</a>
			</div>
		</div> <!-- / #main-menu-inner -->
	</div> <!-- / #main-menu -->
<!-- /4. $MAIN_MENU -->

	<div id="content-wrapper">

<!-- 5. $CONTENT =================================================================================== -->
		<!-- CABECERA -->
		<div class="page-header">
			
			<div class="row">
				<!-- Page header, center on small screens -->
				<h1 class="col-xs-12 col-sm-4 text-center text-left-sm"><i class="fa fa-bar-chart-o page-header-icon"></i>&nbsp;&nbsp;Informes de productos</h1>
			</div>
		</div> <!-- / .page-header -->

		<div class="row text-center margin-bottom-20">
			<div class="block-center">
				<div class="btn-group panelOpcionesGraficas">
					<a class="btn btn-lg btn-primary active" value="ultimo_anio" title="Último año">Año</a>
					<a class="btn btn-lg btn-primary" value="ultimo_mes" title="Último mes">Mes</a>
					<a class="btn btn-lg btn-primary" value="ultimo_dia" title="Último día">Día</a>
				</div>
				<a class="btn btn-lg btn-success" id="mostrar_tabla_productos" title="Mostrar tabla">Mostrar tabla</a>
			</div>
		</div>


		<!-- GRÁFICA INFORME PRODUCTOS -->

		<div class="row margin-bottom-20">
			<div class="col-md-12">
				<div id="loaderGraficaActividadProductos" class="loader"></div>
				<div id="grafica_informes_actividad_productos"></div>
				<input type="hidden" name="informes_productos_grafica_token_CSRF" id="informes_productos_grafica_token_CSRF" value="<?php
					echo generadorTokenAntiCSRF('grafica_informes_productos')?>">
			</div>
		</div>

		<!-- TABLA INFORME PRODUCTOS -->

		<div class="row margin-bottom-20">
			<div class="col-md-12">
				<!-- Javascript -->
				<div id="tabla_informes_productos"></div>
				<input type="hidden" name="informes_productos_tabla_token_CSRF" id="informes_productos_tabla_token_CSRF" value="<?php
					echo generadorTokenAntiCSRF('tabla_informes_productos')?>">
			</div>
		</div>

	</div> <!-- / #content-wrapper -->
	<div id="main-menu-bg"></div>
</div> <!-- / #main-wrapper -->

<script type="text/javascript">
	init.push(function () {
		// Javascript code here
	});
	window.PixelAdmin.start(init);
</script>


</body>
</html>